#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>

int main()
{
    int arr[10] = { 9,1,5,4,7,8,2,3,6,0 };
    for (int j = 0; j < 9; j++)
    {
        for (int i = 0; i < 9 - j; i++)
        {
            if (arr[i] > arr[i + 1])
            {
                int a = arr[i];
                arr[i] = arr[i + 1];
                arr[i + 1] = a;
            }
        }
    }
    for (int i = 0; i < 10; i++)
    {
        printf("%d ", arr[i]);
    }
    return 0;
}